chars = ["a", "b", 100, -37, 2]

# 尝试访问不存在的索引
try:
    print(chars[10])
except IndexError as e:
    print("捕获到异常:", e)
